﻿using System;

namespace UltimateNavigationFramework.Commands
{
    /// <summary>
    /// Object used to pass parameters to view model delegate command
    /// </summary>
    public class NavigationObject
    {
        #region Properties
        public object CommandParameter { get; private set; }
        public string NavigateUri { get; private set; }
        #endregion

        #region Constructor
        public NavigationObject(object commandParameter, string navigateUri, string formatA, string formatB, string formatC)
        {
            this.CommandParameter = commandParameter;
            this.NavigateUri = navigateUri == null ? string.Empty : String.Format(navigateUri, formatA, formatB, formatC);
        } 
        #endregion
    }
}
